package com.scsj.supermarket.bean;

import java.io.Serializable;
import java.util.List;

/**
 * 联网接口的收货地址bean
 */
public class DeliveryAddressBean {

    /**
     * success : true
     * msg : success
     * statusCode : 200
     * data : [{"userDeliveryAddress":{"id":"test01","userId":"5223b59f-6099-11e8-ac5f-a0d3c1facc88","receiverName":"111","receiverPhone":"111","isDefult":0,"tag":"家","createUser":"1","createTime":"2018-06-04T18:03:35","updateUser":null,"updateTime":null,"isValid":1},"location":{"id":"test01","createUser":"test","createTime":"2018-06-04T17:59:18","updateUser":null,"updateTime":null,"isValid":1,"type":3,"correlationId":"test01","address":"景峰国际中心","latitude":34.770609,"longitude":113.734957,"streetNumber":"门牌号","street":"街道","district":"区县","city":"城市","province":"省份","business":null},"isOutDistance":0},{"userDeliveryAddress":{"id":"test02","userId":"5223b59f-6099-11e8-ac5f-a0d3c1facc88","receiverName":"222","receiverPhone":"222","isDefult":0,"tag":"家","createUser":"2","createTime":"2018-06-04T18:03:33","updateUser":null,"updateTime":null,"isValid":1},"location":{"id":"test02","createUser":"11","createTime":"2018-06-04T17:59:56","updateUser":null,"updateTime":null,"isValid":1,"type":3,"correlationId":"test02","address":"金林公馆","latitude":34.75511,"longitude":113.70639,"streetNumber":"11","street":"11","district":"11","city":"11","province":"11","business":null},"isOutDistance":0},{"userDeliveryAddress":{"id":"test03","userId":"5223b59f-6099-11e8-ac5f-a0d3c1facc88","receiverName":"333","receiverPhone":"333","isDefult":0,"tag":"家","createUser":"3","createTime":"2018-06-04T18:03:31","updateUser":null,"updateTime":null,"isValid":1},"location":{"id":"test03","createUser":"1","createTime":"2018-06-04T18:00:58","updateUser":null,"updateTime":null,"isValid":1,"type":3,"correlationId":"test03","address":"郑州大学","latitude":34.81717,"longitude":113.53591,"streetNumber":"11","street":"111","district":"11","city":"11","province":"11","business":null},"isOutDistance":1},{"userDeliveryAddress":{"id":"test04","userId":"5223b59f-6099-11e8-ac5f-a0d3c1facc88","receiverName":"444","receiverPhone":"444","isDefult":0,"tag":"家","createUser":"4","createTime":"2018-06-04T18:03:29","updateUser":null,"updateTime":null,"isValid":1},"location":{"id":"test04","createUser":"2","createTime":"2018-06-04T18:01:46","updateUser":null,"updateTime":null,"isValid":1,"type":3,"correlationId":"test04","address":"东站","latitude":34.759294,"longitude":113.779691,"streetNumber":"22","street":"22","district":"22","city":"22","province":"22","business":null},"isOutDistance":1}]
     */

    private boolean success;
    private String msg;
    private int statusCode;
    private List<DataBean> data;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(int statusCode) {
        this.statusCode = statusCode;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable{
        /**
         * userDeliveryAddress : {"id":"test01","userId":"5223b59f-6099-11e8-ac5f-a0d3c1facc88","receiverName":"111","receiverPhone":"111","isDefult":0,"tag":"家","createUser":"1","createTime":"2018-06-04T18:03:35","updateUser":null,"updateTime":null,"isValid":1}
         * location : {"id":"test01","createUser":"test","createTime":"2018-06-04T17:59:18","updateUser":null,"updateTime":null,"isValid":1,"type":3,"correlationId":"test01","address":"景峰国际中心","latitude":34.770609,"longitude":113.734957,"streetNumber":"门牌号","street":"街道","district":"区县","city":"城市","province":"省份","business":null}
         * isOutDistance : 0
         */

        private UserDeliveryAddressBean userDeliveryAddress;
        private LocationBean location;
        private int isOutDistance;

        @Override
        public String toString() {
            return "DataBean{" +
                    "userDeliveryAddress=" + userDeliveryAddress +
                    ", location=" + location +
                    ", isOutDistance=" + isOutDistance +
                    '}';
        }

        public UserDeliveryAddressBean getUserDeliveryAddress() {
            return userDeliveryAddress;
        }

        public void setUserDeliveryAddress(UserDeliveryAddressBean userDeliveryAddress) {
            this.userDeliveryAddress = userDeliveryAddress;
        }

        public LocationBean getLocation() {
            return location;
        }

        public void setLocation(LocationBean location) {
            this.location = location;
        }

        public int getIsOutDistance() {
            return isOutDistance;
        }

        public void setIsOutDistance(int isOutDistance) {
            this.isOutDistance = isOutDistance;
        }

        public static class UserDeliveryAddressBean implements Serializable{
            /**
             * id : test01
             * userId : 5223b59f-6099-11e8-ac5f-a0d3c1facc88
             * receiverName : 111
             * receiverPhone : 111
             * isDefult : 0
             * tag : 家
             * createUser : 1
             * createTime : 2018-06-04T18:03:35
             * updateUser : null
             * updateTime : null
             * isValid : 1
             */

            private String id;
            private String userId;
            private String receiverName;
            private String receiverPhone;
            private int isDefult;
            private String tag;
            private String createUser;
            private String createTime;
            private Object updateUser;
            private Object updateTime;
            private int isValid;

            @Override
            public String toString() {
                return "UserDeliveryAddressBean{" +
                        "id='" + id + '\'' +
                        ", userId='" + userId + '\'' +
                        ", receiverName='" + receiverName + '\'' +
                        ", receiverPhone='" + receiverPhone + '\'' +
                        ", isDefult=" + isDefult +
                        ", tag='" + tag + '\'' +
                        ", createUser='" + createUser + '\'' +
                        ", createTime='" + createTime + '\'' +
                        ", updateUser=" + updateUser +
                        ", updateTime=" + updateTime +
                        ", isValid=" + isValid +
                        '}';
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getUserId() {
                return userId;
            }

            public void setUserId(String userId) {
                this.userId = userId;
            }

            public String getReceiverName() {
                return receiverName;
            }

            public void setReceiverName(String receiverName) {
                this.receiverName = receiverName;
            }

            public String getReceiverPhone() {
                return receiverPhone;
            }

            public void setReceiverPhone(String receiverPhone) {
                this.receiverPhone = receiverPhone;
            }

            public int getIsDefult() {
                return isDefult;
            }

            public void setIsDefult(int isDefult) {
                this.isDefult = isDefult;
            }

            public String getTag() {
                return tag;
            }

            public void setTag(String tag) {
                this.tag = tag;
            }

            public String getCreateUser() {
                return createUser;
            }

            public void setCreateUser(String createUser) {
                this.createUser = createUser;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public Object getUpdateUser() {
                return updateUser;
            }

            public void setUpdateUser(Object updateUser) {
                this.updateUser = updateUser;
            }

            public Object getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(Object updateTime) {
                this.updateTime = updateTime;
            }

            public int getIsValid() {
                return isValid;
            }

            public void setIsValid(int isValid) {
                this.isValid = isValid;
            }
        }

        public static class LocationBean implements Serializable{
            /**
             * id : test01
             * createUser : test
             * createTime : 2018-06-04T17:59:18
             * updateUser : null
             * updateTime : null
             * isValid : 1
             * type : 3
             * correlationId : test01
             * address : 景峰国际中心
             * latitude : 34.770609
             * longitude : 113.734957
             * streetNumber : 门牌号
             * street : 街道
             * district : 区县
             * city : 城市
             * province : 省份
             * business : null
             */

            private String id;
            private String createUser;
            private String createTime;
            private Object updateUser;
            private Object updateTime;
            private int isValid;
            private int type;
            private String correlationId;
            private String address;
            private double latitude;
            private double longitude;
            private String streetNumber;
            private String street;
            private String district;
            private String city;
            private String province;
            private Object business;

            @Override
            public String toString() {
                return "LocationBean{" +
                        "id='" + id + '\'' +
                        ", createUser='" + createUser + '\'' +
                        ", createTime='" + createTime + '\'' +
                        ", updateUser=" + updateUser +
                        ", updateTime=" + updateTime +
                        ", isValid=" + isValid +
                        ", type=" + type +
                        ", correlationId='" + correlationId + '\'' +
                        ", address='" + address + '\'' +
                        ", latitude=" + latitude +
                        ", longitude=" + longitude +
                        ", streetNumber='" + streetNumber + '\'' +
                        ", street='" + street + '\'' +
                        ", district='" + district + '\'' +
                        ", city='" + city + '\'' +
                        ", province='" + province + '\'' +
                        ", business=" + business +
                        '}';
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getCreateUser() {
                return createUser;
            }

            public void setCreateUser(String createUser) {
                this.createUser = createUser;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public Object getUpdateUser() {
                return updateUser;
            }

            public void setUpdateUser(Object updateUser) {
                this.updateUser = updateUser;
            }

            public Object getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(Object updateTime) {
                this.updateTime = updateTime;
            }

            public int getIsValid() {
                return isValid;
            }

            public void setIsValid(int isValid) {
                this.isValid = isValid;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public String getCorrelationId() {
                return correlationId;
            }

            public void setCorrelationId(String correlationId) {
                this.correlationId = correlationId;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public double getLatitude() {
                return latitude;
            }

            public void setLatitude(double latitude) {
                this.latitude = latitude;
            }

            public double getLongitude() {
                return longitude;
            }

            public void setLongitude(double longitude) {
                this.longitude = longitude;
            }

            public String getStreetNumber() {
                return streetNumber;
            }

            public void setStreetNumber(String streetNumber) {
                this.streetNumber = streetNumber;
            }

            public String getStreet() {
                return street;
            }

            public void setStreet(String street) {
                this.street = street;
            }

            public String getDistrict() {
                return district;
            }

            public void setDistrict(String district) {
                this.district = district;
            }

            public String getCity() {
                return city;
            }

            public void setCity(String city) {
                this.city = city;
            }

            public String getProvince() {
                return province;
            }

            public void setProvince(String province) {
                this.province = province;
            }

            public Object getBusiness() {
                return business;
            }

            public void setBusiness(Object business) {
                this.business = business;
            }
        }
    }
}
